package com.ninjia.common.pojo;

public enum CommonErrorDict {
    SystemError(10001, "系统异常"),
    ParamError(10002, "参数错误"),
    InvalidAccessError(10003, "非法访问");

    private ErrorDict code;

    CommonErrorDict(Integer Code, String emsg) {
        code = new ErrorDict(Code, emsg);
    }

    public ErrorDict res() {
        return code;
    }
}
